package org.jeecg.modules.bl.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.bl.entity.BlDiscounts;
import org.jeecg.modules.bl.entity.BlSubDiscounts;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 水费优惠方案
 * @Author: jeecg-boot
 * @Date:   2022-02-13
 * @Version: V1.0
 */
public interface IBlDiscountsService extends IService<BlDiscounts> {

	/**
	 * 添加一对多
	 *
	 */
	public void saveMain(BlDiscounts blDiscounts,List<BlSubDiscounts> blSubDiscountsList) ;

	/**
	 * 修改一对多
	 *
	 */
	public void updateMain(BlDiscounts blDiscounts,List<BlSubDiscounts> blSubDiscountsList);

	/**
	 * 删除一对多
	 */
	public void delMain (String id);

	/**
	 * 批量删除一对多
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

	/**查询收费项的优惠值记录*/
	public List<BlSubDiscounts> queryDiscountItemByCusId(String cusId) ;

}
